package com.bsoft.coordinatorlayouttest;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;


/**
 * @author User
 */
public class MainActivity extends AppCompatActivity  implements View.OnClickListener{

    Button btnOne;
    Button btnTwo;
    Button btnThree;
    Button btn_four;
    Button btn_five;
    Button btn_six;
    Button btn_seven;
    Button btn_eight;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        btnOne = (Button) findViewById(R.id.btn_one);
        btnTwo = (Button) findViewById(R.id.btn_two);
        btnThree = (Button) findViewById(R.id.btn_three);
        btn_four = (Button) findViewById(R.id.btn_four);
        btn_five = (Button) findViewById(R.id.btn_five);
        btn_six = (Button) findViewById(R.id.btn_six);
        btn_seven = (Button) findViewById(R.id.btn_seven);
        btn_eight = (Button) findViewById(R.id.btn_eight);

        btnOne.setOnClickListener(this);
        btnTwo.setOnClickListener(this);
        btnThree.setOnClickListener(this);
        btn_four.setOnClickListener(this);
        btn_five.setOnClickListener(this);
        btn_six.setOnClickListener(this);
        btn_seven.setOnClickListener(this);
        btn_eight.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.btn_one:
                startActivity(new Intent(MainActivity.this,FloatingactionButton.class));
                break;
            case R.id.btn_two:
                startActivity(new Intent(MainActivity.this,TablayoutActivity.class));
                break;
            case R.id.btn_three:
                startActivity(new Intent(MainActivity.this,NavigationViewSimple.class));
                break;
            case R.id.btn_four:
                startActivity(new Intent(MainActivity.this,ToolBarSimple.class));
                break;
            case R.id.btn_five:
                startActivity(new Intent(MainActivity.this,SnackbarSimple.class));
                break;
            case R.id.btn_six:
                startActivity(new Intent(MainActivity.this,FloatingButtonAndSnackSimple.class));
                break;
            case R.id.btn_seven:
                startActivity(new Intent(MainActivity.this,FloatingButtonAndToolBarSimple.class));
                break;
            case R.id.btn_eight:
                startActivity(new Intent(MainActivity.this,CollapsingToolbarLayoutAndAppBarLayoutSimple.class));
                break;
            default:
                return;
        }
    }
}
